package com.gaga.console.core.service;

import com.gaga.common.exception.CaptchaException;
import com.gaga.common.result.Result;

/**
 * 验证码业务类
 *
 * @author pangu
 */
public interface AuthService {


	/**
	 * 获取验证码
	 *
	 * @return Result
	 */
	Result getCode();


	/**
	 * 校验验证码
	 *
	 * @param key  　KEY
	 * @param code 验证码
	 */
	void check(String key, String code) throws CaptchaException;
}
